#include <iostream>
#include "phone.h"

std::ostream& operator<<(std::ostream &out,const PhoneNumber &number){
	
	out<<"("<<number.area<<") "<<number.exce<<"-"<<number.line<<"\n";

	return out;
}

std::istream& operator>>(std::istream &inp,PhoneNumber &number){
	std::cout<<"Area=";
	std::inp>>number.area;
	std::cout<<"Exce=";
	std::inp>>number.exce;
	std::cout<<"Line=";
	std::inp>>number.line;
	return inp;
}
